package com.yl.navigation.di

import com.yl.common.network.RetrofitManager
import com.yl.navigation.api.TreeApi
import com.yl.navigation.repo.TreeRepo
import com.yl.navigation.viewmodel.TreeViewModel
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module

/**
 * Created by stew on 8/5/22.
 */
val treeModule = module {
    single { RetrofitManager.getService(TreeApi::class.java) }
    single { TreeRepo(get()) }
    viewModel { TreeViewModel(get()) }
}